package com.jyh.blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * (Talk)实体类
 *
 * @author jyh
 * @since 2023-02-13 16:26:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Talk implements Serializable {
    private static final long serialVersionUID = 698441474289001029L;
    /**
     * 说说id
     */
    @TableId(value = "id",type= IdType.ASSIGN_ID)
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 说说内容
     */
    private String content;
    /**
     * 图片
     */
    private String images;
    /**
     * 是否置顶
     */
    private Integer isTop;
    /**
     * 状态 1.公开 2.私密
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}

